import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo11 {
    public static void main(String[] args) {
        try(OutputStream os = new FileOutputStream("./output.txt",true)){
            os.write('h');
            os.write('e');
            os.write('l');
            os.write('l');
            os.write('o');
            os.flush();
        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
